package morning.cat.aop;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @describe: 类描述信息
 * @author: morningcat.zhang
 * @date: 2019/4/1 1:18 AM
 */
@Aspect
@Component
public class Log {

    @Pointcut("execution(* morning.cat.service.*.*(..))")
    public void pointcut() {
    }

    @Before("pointcut()")
    public void before() {
        System.out.println("------behore------");
    }

    @After("pointcut()")
    public void after() {
        System.out.println("------after------");
    }


}
